class Vihicle
{
	protected String name;
	protected String age;
	{
		name = "交通工具";
		age = "20";
	}
	public Vihicle()
	{

	}
	public Vihicle (String name,String age)
	{
		super();
		this.name = name;
		this.age = age;
	}

}
class Car extends Vihicle
{
	public Car()
	{

	}
	public Car (String name,String age)
	{
		super(name,age);
	}

}
class Train extends Vihicle
{
	protected String trainName;
	protected double trainSpeed;
	public Train (String trainName,double trainSpeed)
	{
		this.trainName = trainName;
		this.trainSpeed = trainSpeed;
		// System.out.println("这是火车");
	}

}
class Plane extends Vihicle
{
	public Plane ()
	{
		System.out.println("");
	}

}
public class Test5
{
	public static void main(String[] args)
	{
		Car c = new Car();
		System.out.println(c.name+" "+c.age);
		// System.out.println(p);
	}
}